<?php 
//$show_validator = true;
include TMPL_PATH.'public/header.phtml';
?>
<script type="text/javascript">
<!--
	$(function(){
	})
//-->
</script>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
        <a href='<?php echo U('product/index');?>'><em>产品列表</em></a><span>|</span>
        <a href='javascript:;' class="on" ><em>产品设置</em></a></div>
</div>
<form action="<?php echo U('product/config'); ?>" method="post" id="myform">
<div class="pad-10">
<div class="col-tab">
<div class="contentList pad-10">
<table width="100%"  class="table_form">
  <tr>
    <th width="120">分类页列表显示数量</th>
    <td class="y-bg">
     <input  type="text" name="product_list_num" class="input-text"  value="<?php echo isset($config['product_list_num']) && $config['product_list_num'] ? $config['product_list_num'] : 20;?>" /><div class="infoShow">在商品列表页中商品的展示数量</div>
	</td>
  </tr>
  <tr>
    <th>列表页缩略图</th>
    <td class="y-bg">宽：<input type="text" class="input-text" name="product_list_width" id="list_width" size="5" value="<?php echo isset($config['product_list_width']) && $config['product_list_width'] ? $config['product_list_width'] : 175;?>"/> 高：<input type="text" class="input-text" name="product_list_height" id="list_height" size="5" value="<?php echo isset($config['product_list_height']) && $config['product_list_height'] ? $config['product_list_height'] : 175;?>"/><div class="infoShow">列表页图片大小</div></td>
  </tr>
  <tr>
    <th>缩略图</th>
    <td class="y-bg">宽：<input type="text" class="input-text" name="product_thumb_width" id="thumb_width" size="5" value="<?php echo isset($config['product_thumb_width']) && $config['product_thumb_width'] ? $config['product_thumb_width'] : 100;?>"/> 高：<input type="text" class="input-text" name="product_thumb_height" id="thumb_height" size="5" value="<?php echo isset($config['product_thumb_height']) && $config['product_thumb_height'] ? $config['product_thumb_height'] : 100;?>"/><div class="infoShow">最小图大小</div></td>
  </tr>
  <tr>
    <th>缩略图类型</th>
    <td class="y-bg">
    <input name="product_thumb_type"  value="0" type="radio" <?php echo (!isset($config['product_thumb_type']) || $config['product_thumb_type']==0) ? ' checked' : ''?>> 按缩略图比例生成
    <input name="product_thumb_type" value="1" type="radio"  <?php echo $config['product_thumb_type']==1 ? ' checked' : ''?>> 生成固定大小缩略图<font color="red">（会裁掉图片不符合缩略图比例的部分）</font>
    </td>
  </tr>
  <!--<tr>
    <th>水印文件</th>
    <td class="y-bg"><input type="file" name="upimage" value=""/><br/>
    <input type="text" disabled class="input-text" style="width:200px" name="water_img" value="<?php echo isset($config['water_img']) && $config['water_img'] ? $config['water_img'] : null;?>"/> 
    <?php if(isset($config['water_img']) && $config['water_img']){?><img src="<?php echo isset($config['water_img']) && $config['water_img'] ? $config['water_img'] : null;?>"/><?php }?></td>
  </tr>
   <tr>
    <th>水印位置</th>
    <td class="y-bg">
        <label for="value_205_0"><input type="radio" value="0" <?php echo (!isset($config['water_place']) || $config['water_place']==0) ? ' checked' : ''?> name="water_place">无</label>
        <label for="value_205_1"><input type="radio" value="1" <?php echo (isset($config['water_place']) && $config['water_place']==1) ? ' checked' : ''?> name="water_place">左上</label>
        <label for="value_205_2"><input type="radio" value="2" <?php echo (isset($config['water_place']) && $config['water_place']==2) ? ' checked' : ''?> name="water_place">右上</label>
        <label for="value_205_3"><input type="radio" value="3" <?php echo (isset($config['water_place']) && $config['water_place']==3) ? ' checked' : ''?> name="water_place">居中</label>
        <label for="value_205_4"><input type="radio" value="4" <?php echo (isset($config['water_place']) && $config['water_place']==4) ? ' checked' : ''?> name="water_place">左下</label>
        <label for="value_205_5"><input type="radio" value="5" <?php echo (isset($config['water_place']) && $config['water_place']==5) ? ' checked' : ''?> name="water_place">右下</label>
    </td>
  </tr>
  <tr>
    <th width="120">水印透明度</th>
    <td class="y-bg">
     <input name="water_alpha" id="water_alpha" type="text" class="input-text" value="<?php echo isset($config['water_alpha']) && $config['water_alpha'] ? $config['water_alpha'] : 65;?>" /><div class="infoShow">水印的透明度，可选值为0-100。当设置为100时则为不透明。</div>
	</td>
  </tr>-->
  <tr>
    <th width="120">商品货号前缀</th>
    <td class="y-bg">
     <input name="product_sn_pre"  type="text" class="input-text" value="<?php echo isset($config['product_sn_pre']) && $config['product_sn_pre'] ? $config['product_sn_pre'] : null;?>" /><div class="infoShow">长度不限制</div>
	</td>
  </tr> 
  </table>
</div>

<div class="bk15"></div>
<input name="dosubmit" type="submit" class="button" value="提交" class="button">
</div>
</div>
</form>
</body>
</html>